package com.sailing.core.java.math;

import java.math.BigDecimal;

public class BigDecimalTest {
	static class Inner{
		BigDecimal db;
	}
	public static void main(String[] args) {
		double dv = 0;
		Inner inner = new Inner();
		inner.db = new BigDecimal(dv);
		BigDecimal db = new BigDecimal(0.0);
		boolean flag = db.equals(inner.db);
		System.out.println(flag);
		System.out.println(db.equals(BigDecimal.ZERO));
		System.out.println(BigDecimal.ZERO.equals(db));
	}
}
